import request from '@/utils/request'

// 查询荣誉资质信息列表
export function listManagement(query) {
  return request({
    url: '/Honor/management/list',
    method: 'get',
    params: query
  })
}

export function listManagementWarn(query) {
  return request({
    url: '/Honor/management/listIndex',
    method: 'get',
    params: query
  })
}


// 查询客户相关荣誉资质信息列表
export function listManagementByEnter(query) {
  return request({
    url: '/Honor/management/getHonorEnterPriseList',
    method: 'get',
    params: query
  })
}
//查询供应商相关荣誉资质信息列表
export function listManagementByCollabo(query) {
  return request({
    url: '/Honor/management/getCooperationList',
    method: 'get',
    params: query
  })
}

//查询平台关系相关的荣誉资质信息列表
export function listManagementByPinTai(query){
  return request({
    url: '/Honor/management/GetPlatformList',
    method: 'get',
    params: query
  })
}
export function listHonorManagementType(query) {
  return request({
    url: '/Honor/management/listType',
    method: 'get',
    params: query
  })
}

export function listHonorManagementOrgId(query) {
  return request({
    url: '/Honor/management/listOrgId',
    method: 'get',
    params: query
  })
}

export function listManagementIndex(query) {
  return request({
    url: '/Honor/management/getTypeUrlList',
    method: 'get',
    params: query
  })
}

export function listType() {
  return request({
    url: '/Honor/management/getTypeList',
    method: 'get'
  })
}

// 查询荣誉资质信息详细
export function getManagement(id) {
  return request({
    url: '/Honor/management/' + id,
    method: 'get'
  })
}

//更新荣誉资质信息状态
export  function updateCertificatePublicStatus(data){
  return request({
      url:"/Honor/management/updateCertificatePublicStatus",
      method:"post",
      data:data
  })
}

// 新增荣誉资质信息
export function addManagement(data) {
  return request({
    url: '/Honor/management',
    method: 'post',
    data: data
  })
}

// 修改荣誉资质信息
export function updateManagement(data) {
  return request({
    url: '/Honor/management',
    method: 'put',
    data: data
  })
}

// 删除荣誉资质信息
export function delManagement(id) {
  return request({
    url: '/Honor/management/' + id,
    method: 'delete'
  })
}
export function treeHonor(id) {
  return request({
    url: '/Honor/management/treeHonor',
    method: 'get'
  })
}
export function getPublicList() {
  return request({
    url: '/Honor/management/getPublicList',
    method: 'get'
  })
}


export function reviceHonor(id) {
  return request({
    url: '/Honor/management/receiveHonor/' + id,
    method: 'get'
  })
}

export function checkSync(id) {
  return request({
    url: '/Honor/management/checkSync/' + id,
    method: 'get'
  })
}








